package hiring.tong.com.company.entity;

import java.util.Date;

public class ApplicationEntity {
/**
			id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,	-- 标识主键	 
			position_id INT UNSIGNED NOT NULL,			-- 所属职位（参考position的id）
			talent_id INT UNSIGNED NOT NULL,			-- 所属求职者（参考talent的id）
			resume_id INT UNSIGNED NOT NULL, 			-- 所属求职者投递的简历(参考resume的id)
			status INT NOT NULL,					    -- 申请状态（1=待审核；2=审核通过；3=已拒绝）
			app_time DATETIME NOT NULL,				    -- 求职者的申请时间
			handle_time DATETIME						-- 企业的处理时间
*/
	private int id;
	private int positionId;
	private int talentId;
	private int resumeId;
	private int status;
	private Date appTime;
	private Date handleTime;
	
	//外表
	private String position$name;
	private String company$name;
	private int company$id;
	private String talent$name;
	private String resume$intention;
	//条件属性
	
	private String pretime;
	private String nexttime;
    
	public String getPretime() {
		return pretime;
	}
	public void setPretime(String pretime) {
		this.pretime = pretime;
	}
	public String getNexttime() {
		return nexttime;
	}
	public void setNexttime(String nexttime) {
		this.nexttime = nexttime;
	}
	public String getTalent$name() {
		return talent$name;
	}
	public void setTalent$name(String talent$name) {
		this.talent$name = talent$name;
	}
	public String getResume$intention() {
		return resume$intention;
	}
	public void setResume$intention(String resume$intention) {
		this.resume$intention = resume$intention;
	}
	public int getCompany$id() {
		return company$id;
	}
	public void setCompany$id(int company$id) {
		this.company$id = company$id;
	}
	public String getPosition$name() {
		return position$name;
	}
	public void setPosition$name(String position$name) {
		this.position$name = position$name;
	}
	public String getCompany$name() {
		return company$name;
	}
	public void setCompany$name(String company$name) {
		this.company$name = company$name;
	}
	public String getStatues(){
	if(status==1){
		return "待审核";
	}
	else if(status==2){
		return "审核通过";
	}
	else{
		return "已拒绝";
	}
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getPositionId() {
		return positionId;
	}
	public void setPositionId(int positionId) {
		this.positionId = positionId;
	}
	public int getTalentId() {
		return talentId;
	}
	public void setTalentId(int talentId) {
		this.talentId = talentId;
	}
	public int getResumeId() {
		return resumeId;
	}
	public void setResumeId(int resumeId) {
		this.resumeId = resumeId;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public Date getAppTime() {
		return appTime;
	}
	public void setAppTime(Date appTime) {
		this.appTime = appTime;
	}
	public Date getHandleTime() {
		return handleTime;
	}
	public void setHandleTime(Date handleTime) {
		this.handleTime = handleTime;
	}
	
}
